package com.example.foobar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.foobar.dto.DABaseDTO;
import com.example.foobar.entity.ImsGhostCustomActiveRecord;
import com.example.foobar.param.ImsGhostCustomActiveRecordPageParam;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author 郑英奔
 * @since 2021-07-12
 */
@Repository
public interface ImsGhostCustomActiveRecordMapper extends BaseMapper<ImsGhostCustomActiveRecord> {
    List<DABaseDTO> getActiveDataByOfficialAccountIdAndDataRange(Map<String, Object> params);

    List<DABaseDTO> getSubscribeCount(Map<String, Object> params);

    List<ImsGhostCustomActiveRecord> listByDate(Map<String, Object> params);

    List<DABaseDTO> getActiveDataByOfficialSceneIdAndDataRange(Map<String, Object> params);

    int getSubscribeCountBySceneId(Map<String, Object> params);
}
